package cn.zw.msmp.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.zw.msmp.common.helper.ExcelImportHelper;
import cn.zw.msmp.common.pojo.ExcelData;
import cn.zw.msmp.controller.vo.BaseVO;

@RestController
@RequestMapping("/data/")
public class DataManagerController {
	
	@Autowired
	@Qualifier("excelImport")
	private ExcelImportHelper excelImportHelper;
	
	@RequestMapping("/import/excel/orderDetail")
	public BaseVO<List<ExcelData>> importOrderDetail() {
		int result = excelImportHelper.importData("d:/test/订单明细.xlsx");
		return new BaseVO(result);
	}
	
}
